<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<th:block th:fragment="nav">
    <div class="header titles" id="header">
        <nav id="mainNav" class="navbar navbar-default navbar-fixed-top hc-top-up">
            <div class="container-fluid" style="text-align: center;">
                <div class="navbar-right hc-contact p768">
                </div>
                <div id="oiBtn" class="hc-oi p1100">
                    <em></em>
                </div>
                <ul id="navBox" class="nav navbar-nav  hc-navbox" style="display: inline-block;float: none;">
                    <!--/*@thymesVar id="siteDto" type="com.healthtop.dto.SiteDto"*/-->
                    <th:block  th:each=" m : ${session.xsMenu}">
                    <li th:if="${session.node ne null && m.menuId eq session.node.menuId}">
                        <a class="nav-select" th:href="${m.path}" th:text="${m.menuName}"></a>
                        <a class="nav-off" th:href="${m.path}" th:text="${m.menuName}"></a>
                    </li>
                        <li th:if="${session.node eq null || m.menuId ne session.node.menuId}" >
                            <a class="nav-on" th:href="${m.path}" th:text="${m.menuName}"></a>
                            <a class="nav-off" th:href="${m.path}" th:text="${m.menuName}"></a>
                        </li>
                    </th:block>
                </ul>
                <ul style="color:#fff;width:150px" class="pull-left">
                    <li class="pull-left">
                        <th:block th:if="${session.current_user eq null}">
                            <a href="/sites/login"> 未登陆,去登陆</a>
                        </th:block>
                        <th:block th:if="${session.current_user ne null}">
                            <div style="width:150px;height:40px;float:left;">
                            <img src="/images/user2-160x160.jpg" class="img-circle" alt="User Image" style="width:34px;height:34px;">
                            </div>
                            <div style="float:left;width:150px;height:20px"><p th:utext="'用户名:'+${session.current_user.userName}"></p></div>
                            <div style="float:left;width:150px;height:10px;color:#fff"><a href="/sites/login">切换用户登陆</a></div>
                            <!--<span class="hidden-xs" style="color:#fff" th:utext="${session.current_user.userName}"></span>-->

                        </th:block>
                    </li>
                </ul>
            </div>
        </nav>
    </div>

</th:block>
